#include <iostream>
#include "Muc3_const.h"

using namespace std;

int main()
{
    CTextBlock tb("Hello");

    std::cout << tb[0] << endl;                   // calls non-const
                                          // TextBlock::operator[]
    tb[0] = 'a';

    const CTextBlock ctb("World");

    std::cout << &ctb[0] <<endl;                  // calls const TextBlock::operator[]

    ctb[0] = 'x';
    std::cout << &ctb[0] <<endl;                  // calls const TextBlock::operator[]


    cout << "Hello world!" << endl;
    return 0;
}
